package com.yanqu.road.logic.activity.foxcard.game.label;

import com.yanqu.road.entity.activity.foxcard.FoxCardPack;
import com.yanqu.road.entity.activity.foxcard.FoxSaleCard;
import com.yanqu.road.logic.activity.foxcard.game.FoxCardGameLogic;
import com.yanqu.road.logic.activity.foxcard.game.eFoxCardTriggerType;

/**
 * 首次进入商店的卡牌和补充包免费
 */
public class FoxCardLabel3 extends FoxCardLabelBase {
    @Override
    protected int labelHandle(FoxCardGameLogic gameLogic) {
        if (triggerType != eFoxCardTriggerType.SHOP_INIT) {
            return 0;
        }

        for (FoxSaleCard saleCard : gameLogic.getGameData().getShop().getSaleCards()) {
            saleCard.setPrice(0);
        }

        for (FoxCardPack cardPack : gameLogic.getGameData().getShop().getCardPacks()) {
            cardPack.setPrice(0);
        }

        return 1;
    }
}
